<div id="edition-credit-<%= credit.id %>"><div class="edition-credit-details">  <%=h credit.role %>  <%=h (credit.details.blank?) ? "" : " [" + credit.details + "]" %>  by <%= link_to credit.artist.name, credit.artist %>  <span class="controls">     <%= link_to_function 'Edit', "$(this).up(1).hide(), $(\"edit-edition-credit-#{credit.id}\").show()" %> |	<%= link_to_remote 'Remove', :url => credit, :method => :delete %>  </span>  <br /></div><div id="edit-edition-credit-<%= credit.id %>" style="display: none">  <% form_remote_for :edition_credit, :url => edition_credit_path(credit), :method => :put do |f| %>    <strong><%=h credit.artist.name %></strong>	<%= f.label :role %>	<%= f.select :role, EditionCredit::ROLES %>	<%= f.label :details %>	<%= f.text_field :details %>	    <%= f.submit "Update" %>	<%= submit_tag 'Cancel', :type => 'button', :onclick => "this.up(1).hide(),this.up(1).previous().show(),this.form.reset()" %>  <% end %></div></div>